Loops in blueprints are terribly slow, I would suggest just running this in C++ especially when you want speed out of it.