Please vote the proposal made in 2021 for an Attach API
Using the native model attachment in the model .xml files, compared to constantly setting the position for each attached object, has a dramatic positive effect in performances (perfect attachments with zero lag) and system load and Simconnect traffic, but of course it can’t be done programmatically, that’s why an API would be useful, you can imagine what the impact (and the lag) would be, if every add-on tried to keep several objects attached at each frame.