Improved threading robustness: up to 128 threads