Now let's use the left oil in the pan, add all whole spices and fry them for few seconds. Add cashew nuts, fry them for a while and now let's add chopped ginger and garlic, fry them for a while gain and then add chopped onions, again fry them for 2 mins until the onions are soft. Now turn off the flame and let it allow to cool down and transfer into a blender to make a fine paste. Do not add water to the paste.