cube support for cache and queries