Quackster, loops always represent a problem, especially when running without any delays, and when running on a not-so-good server machine.
My advise is: you should try to execute more functions with the program you created, rather than with the DayZ server exe.
This is the way we did it, and with a pretty decent server machine with 50+ players, we experienced very few lag moments