add wrappers for CacheLoader and CacheWriter