minimizing lock time