Performance improvement from Parallel.For in place of nested for loops.