General approach for handling game state flags?

More of a general game design question, but I’m also asking if there’s a UE-specific solution.

If I want to keep track of the state of my game (If you’ve talked to someone or not, etc) with binary flags, how should I store them so that they could later be re-loaded? My game will probably end up having a few hundred flags, so I need something that will let me organize them a bit.

My current thought is to construct an array of flags on new game and serialize it for save/load, but keeping track of the indexes as it gets large would be a nightmare. Would data tables be more appropriate? A hashmap with descriptive names as the key, maybe? I could cobble something together, but figured it would be good to get some insight first.