Eliminate redundant copies in create_torrent and start_seeding