Optimize returns (merge them with copies where possible).