Preheat the oven to 180°C.
In a large bowl, toss the tempeh cubes in a couple of tablespoons of oil and a generous pinch of salt.
Spread the tempeh in an even layer on a baking tray and bake for 15 min until tempeh has developed a golden crust on the outside.
In a blender, blend the tomato and chilies into a smooth paste. Set aside.
Next, heat a couple of tablespoons of oil over high heat in a frying pan. Once the pan is hot, fry the onions together with the galangal until the onions are translucent (about 5 min).
Reduce the heat to medium, then add the blended chili and tomato paste into the frying pan with the onions and galangal. Fry until the chili and tomato paste have turned a darker red.
Add the tempeh to the frying pan and stir until the tempeh is well coated. Try to be gentle with the tempeh so that it doesn't turn into a crumbly mess, unless that's what you're trying to achieve.
Add the mushroom powder, kecap manis, gula melaka, tamarind juice, soya sauce and half the kaffir lime leaves to the frying pan and continue to stir until the sauces have thickened into a sticky coating around the tempeh.
Taste the tempeh and adjust the flavour according to taste. Add more tamarind if you like it more sour, add more gula melaka if you like it more sweet and add more soya sauce if you like it more salty. Then add ground black .
Dish out onto a serving dish and sprinkle the remaining kaffir lime leaves on top as a garnishing.