“A lot of math” - are we talking about 20 million operations per second here? Because otherwise your cpu most likely will be able to handle that with ease.
What you’re trying to do smells a lot like premature optimization.
Make working prototype first, using uclasses, and if it is slow, start optimizing.