optimizing speed over ssh