Marking this as draft for now, as I need to revisit it at some point. If removing the copy is possible, that would be even better than optimizing it. In which case the final solution may look very different to the one here (resulting in the closure of this MR).
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/5979#note_76372