UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '3rBIqJFE9IC/kmjg2PBg8Eo70epWZAU9uX5puVC3YrE=' 
WHERE 
  key_id = 'b68567936891c8bf46cd7e11b2acf27c2030f85aed5cc52c585c412568968d96' 
  AND (
    token = '3rBIqJFE9IC/kmjg2PBg8Eo70epWZAU9uX5puVC3YrE=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00032