#357 Minimize creation of array for threads at the advice
of Ferry