Fixed the cache file hash to use actual query data