Use temporary stream wrapper for cache.