Replace metadata with cache.