Avoid redundant pointer copy