reduce number of locks used.