Neural Networks have lot of pluses ( and minuses of course ) but main of it ( as I think ) parallel computation. With power of modern GPU it can be delicious. What if create C++ code converter to neural networks. This task is not simple according to data limitations but possible. Some methods can be converted and will improve your code speed. Such converter is easy to make with methods that take simple types like float, int, bool and return same type, for other it can be more complicated I guess.