Make cache constants private in QueryModel