Keep the entry count in cache, and don't query for it if it passes the

limit. 
#PLAT-884 #time 1.5h