It may be possible to stream a part of the transfer through an xz algorithm such as https://bitbucket.org/Rawr/goxz/.