added ability to do queries on cache filtered with Entity