Making the critical section a bit faster.