Store the leftover sambal in a glass jar, levelling out the surface and covering in a thin layer of oil. It will keep for several weeks in the fridge.