Initial omp optimization