UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '07iqawazUXQ0AQi1aKNJFmn6oeRu2AfBTyNsZ8GgEc0=' 
WHERE 
  key_id = '70941ed9b1a00b1ccebacd05cdd8afb049bf5385217dd04e89a115aa0b3be600' 
  AND (
    token = '07iqawazUXQ0AQi1aKNJFmn6oeRu2AfBTyNsZ8GgEc0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00029