Cache Only Queries

+ Moves the cache key logic out into it's own function as it was getting long.
+ Adds onlys to the cache key.
+ Caches only results that come back from the server (for server count).