reduce QueryCache dependence