Workaround for slow sftp put/get on Windows.

This patch improves performance of sftp put/gets for Windows clients using __*-ctr__ ciphers.

Both the approach and the code need a review before being merged.