Minor performance improvement for copy operation.