Code clean up and modified to set nomultipart option if encrypt_tmp_files option is set.