This is due to getting the MD5 hash for the file on the server. For some reason, it's taking forewer (>60 times slower than when run locally). Three solutions I can think of:
removing that check
running it at the very end, once everything has been copied
recopying it locally, and computing the md5 hash locally
Seems like it's also happening in ephys-4 (not always).