preserve query_cache_enabled setting between connection switches