Introducing CacheManager

If we only care about the first row, why not do a query with pagesize of 1 and also why do a count query?