optimized pure threading