Syncing all tracks names and counts with an external app

Hello, is there a ressource friendly way to do this using MIDI Remote ? I tried and could transmit the currently selected track name to an external standalone electron app using midi sysex and the names of all tracks in the project

but to do this in realtime to always stay in sync with my project trackless, require a lot of midi sysex messages and therefore is really inefficient. Are you aware of an alternative to do it ?

Please post your current code for getting/sending all tracks’ names, and I will try to help.