New CachedOutputStream for caching output streams for re-use as
InputStream. Swaps memory overflow to file.