Build an Array using an editor utility widget, then load that array by default when opening a specific level

I’m trying to create a tool to make level editing faster for a 2D square grid tactical game. Essentially, I have a tool to mark all the tiles that should count as non-traversable, and I can save that to an array to aid in pathfinding. However, it’s costly, so I don’t want to run it every time I open the level. I know I could probably make a complicated CSV output and then import that, but I was wondering if there was a more elegant process anyone knew of?

What I would like is just to save the array to a file and load that file on opening the level but can’t see a way to do that as of yet.

Thanks in advance!