Extract CacheHelper class