ssh speed-up tricks are applied to all ssh transfers
the image transfer performance issues lead to improvements in ssh handling (pipelinining, chunking, memoryview). Those could be added to all transfers (stage-in, stage-out).
For http2ssh transfer, a separate module could be created if possible to use with b2share in streaming case.