Optimized copyFileBackend to use MD5 from listing if given (e.g. Swift)

Change-Id: Ic495d6c8c6dffb0b34e6b5eefb8de4d057a51069
(cherry picked from commit b3c1283cc6c6a32ffbea07cce62ef1b50a193fd1)