ok, calling the optimization task done for now - no obvious extra avenues that I can see, and performance is good enough
https://github.com/increpare/PuzzleScript/issues/89