Improve locking effeciency