Remove unnecessary copy operation before upload.