Avoid unnecessary zval duplication