Init caching logic