There are "safe/restore" type tools if your scenario is really about storing N different configurations, i.e. N different snapshots of PVs and their values, and you later want to restore them.
For example, you might want to save power supply settings under names like "Low Energy Setup", "High Energy Setup", "Golden Setup from 2019/03/19" and then later compare them, restore them, etc.
Technically they might write the values from PVs to some relational database, then restore them by reading saved values from a relational database to PVs.
Again they're referred to as save/restore tools, you could look for those instead of starting over with a script embedded in a display.
-Kay