Optimized file transfer