Yoghurt is frequently added to a curry or sauce. The aim is to cook the water out of the yoghurt and slightly caramelise the dairy. At a medium-high heat, it should takes a little over 5 minutes for yoghurt to completely cook down. It will first split, then fry, then become a rich and oily part of the masala, as the sugars in the milk brown to create flavour.