Fixed query caching