Saving Values from Midi Controller to a Table and recalling them during Set

Hello Everyone

I would like to build a CUE system, where I can store values of my MIDI controller in a list and send them later to the parameters. So to speak with the MIDI controller random moments are searched (live) and if something beautiful can be saved in a table and then put this on a button and show during the set again this state.

I am a bit overwhelmed how to approach this thing.

Best regards
F.