Quick optimizations to reduce number of database queries in vote app resources