Slightly improved performance in a critical section.