Make StdCopy works with huge amount of data