Continue cooking until most of the liquid has evaporated and the color has darkened slightly.
Add in tamarind, sugar, galangal, kecap manis and 1/4 cup of water.
Stir to combine well.
Continue cooking until thickened into a paste.
Taste and adjust for seasoning with sugar, salt and pepper.
Remove from heat and set aside.