Caching the search query