Smaller code, but lock_keys protections is not working