Caching recipe with the persistent cache mechanism and cleaning code