UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'VzKC2MJfzdrY2WE4VM/YCXSbzyalYEIu+huYt73dtk0=' 
WHERE 
  key_id = 'c9448cceddcda1709b089c3e9393d961ee96e331260bc9010b1afc2df0ef3310' 
  AND (
    token = 'VzKC2MJfzdrY2WE4VM/YCXSbzyalYEIu+huYt73dtk0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00042