Add prepare_copy_in to transaction