Tidy and document caching API