Small lock optimize