adding in support for automatic caching for reads via QueryGenCache