Decrease number of mutex locks