remove cached_query_id method