Memory reduction of merge operation.