Optimize entity count calculation: on every resource extraction instead of on every entity save
On QuerySets, count() is much faster than len(), because it doesn't retrieve contents
Optimize stats calculation: on extract, delete, approve and update instead of save