More efficient use of the cache.  I was doing one query for the has and one for the get before