Add StatsCollectingOutputStream, to get more/most accurate info on actual number of bytes written