UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'FcDzZ8lPNSsSAY5DMKINXJTcSwJGN7ZVmFwDLorZln0=' 
WHERE 
  key_id = '08e221a5a791c0c4a8c37c29dad5ba9efd9abb89b2d628cf05960c2c7e86c2a7' 
  AND (
    token = 'FcDzZ8lPNSsSAY5DMKINXJTcSwJGN7ZVmFwDLorZln0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00038