Add callback for creating CacheEntry instance
use CacheEntry callback instead of reflection for entry creation