Could the sftp session be preserved and reused during longer time? At the moment it keeps open for only 2 minutes. The parameter changeable by user will help a lot.
Actually it's just 1 minute
Try this version to see if it does what you want:
Yes, it is perfect. Thank you.