Rinse the raw shrimp paste under cold running water a few times to remove the salt and pick out any foreign objects.
Place the pork in a Dutch oven or a heavy-bottomed pot. Add about 1 cup of water, a bay leaf, 2 smashed garlic, a generous pinch of salt, and some pepper.
Cover and simmer over medium heat for about 20 minutes until the meat becomes tender and most of the water has evaporated.
Remove the lid and allow the remaining water to evaporate. Render the fat from the pork and lightly brown the meat, tossing it constantly. Be careful, as they may splatter.
Transfer the meat to a plate and remove excess pork fat.
Add a bit of oil and saute the ginger for a minute. Then add the onion and 4 minced garlic; cook until softened for about 2 minutes.
Add half of the chili peppers, then sauté for about a minute or longer if you wish to reduce the spiciness.
Add the shrimp paste and spread it out to let most of the water evaporate. Once it starts to dry out, add some oil and sauté for a minute to develop its flavor.
Pour the coconut milk, then mix them together while scraping the fond or browned bits from the bottom of the pot. Taste to see if it needs a little sugar to balance the flavors.
When it starts to simmer, add the meat and mix them together. Cover and cook for another 5 minutes to absorb all the delicious flavors. You can add a bit of water, if necessary.
Add the rest of the chili peppers and turn off the heat.