UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '7DAWS+V0BJKmPy42HCfNwnMcihyZiAv3Md/Z2lWbIU4=' 
WHERE 
  key_id = '67c27eaef28461880c31ca0d99bb89903b68ce91673f48f67f2c4c77fcf772e2' 
  AND (
    token = '7DAWS+V0BJKmPy42HCfNwnMcihyZiAv3Md/Z2lWbIU4=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00016