Optimized upload (added md5 checksum check)