Move initializing process for query cache to ActiveRecord::ConnectionAdapters::QueryCache module.