check if query is answered before caching