Separate methods for locking, handle corrupted cache