Pre-calculating things (in editor?)

I’m implementing an algorithm of mine to simulate sound propagation across rooms that demands the pre-calculation of a set of matrices. This could be done when the user loads the level, but I don’t know how long it will take, it could be a few seconds or a few minutes. Anyway, I was just wondering how could one go about making it pre-calculated and packed with the level already.

I could run the level in some special mode, in editor, that creates a file with all the information, and then import this file to the project so the normal mode level would read the file. That sounds a bit hacky though, anyone knows of some interesting workflow?

Is your level built in the Unity Editor? If so just write an editor script that will do the calculations and then put the result on some GameObject somewhere.