Universal caching solution