Looking for a more efficient way to load previously saved proceduraly generated actors

Hello good folks, as the title suggest i am looking for a more efficient way to do my loading, the way it works now is on Event Begin Play i am spawning at random 1-9 actors (shapes)
at random locations inside a volume, i then save those locations in an individual array for each actor.

When the level restarts i want to load those same locations and actors, so i am doing a ForEachLoop for each of those arrays and SpawnActorOfClass based on the array that i’ve used, so i am doing that 9 times. Now, i am not very experienced but this seem like a really bad way of doing it so i am pretty sure there’s a better of way of doing it, more importantly, one that would allow me to increase the amount of actors i spawn eventually without me having to always go back and create a new array.

Any suggestions please, thank you!