Would it be faster to use the sftp put and get methods instead of the current open/read/write/close code for transferring files to and from the repository?

done probably not worth it --liw