optimized no of threads in cfg