Work on reducing the number of mutex lock/unlock cycles