Better sftp handling (proxy function for easier future improvements) and rendering files before sftp open