I am a total beginner to game dev, but when I checked a little bit on this stuff, it's probably not so easy as you say it is to do something like this, especially for web but even just anyway. I guess though it might depend what the enemies are, how many of them there are and some other things.
One of the improvements that I’ve had in my mind is to reduce AI update frequency (including navigation) relatively to amount of enemies and have these updates slightly offset so they dont all spike the same second… But haven’t done any research on best practices yet. Thanks for playing the game!