Decrease defers and embed mutexes when makes sense.