Base functionality for caching engine