Replace Contracts calls with simple asserts.
Async copy streams