Separated sftp input/output streams from everything else, which is only a marginal improvement