Should boiled legumes cool before processing?
When processing legumes, you're adding oxygen which promotes bacteria growth. If you do that at lower temperatures, risks increase. 

Professional cooks have to bring the processed legumes back to a simmer before cooling them rapidly.

So, in your home kitchen, process them while they're still hot.