Grind small onions, garlic, Kashmiri red chilli powder, cumin seeds, tamarind and curry leaves into a fine, smooth paste.
Heat sesame oil in a pan. Add mustard seeds and allow them to crackle.
Add cumin seeds, asafoetida and garlic. Fry and sauté.
Add the prepared masala paste. Pour in ⅛ cup water, washing out the mixer jar. Add salt and turmeric powder. Mix everything well.
Close the pan and cook on low heat for 10 minutes.
Open and mix once again. Continue cooking until the raw smell disappears, the masala thickens and oil releases from it.
Add finely chopped palak leaves and mix thoroughly with the masala.
Cook on low heat for another 5 minutes. Stop cooking when the oil separates from the masala again and the spinach is cooked.
Serve hot with steamed rice, topped with a teaspoon of ghee or sesame oil.