Simplify cache config callback, storeAsBinary memcache and dist as well.