UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '/0uXv2XbKW0kOX3qHxORDA88//SyfnKg2PMggkQIhjk=' 
WHERE 
  key_id = '68a26e9400fb9d7d38bac2cee1f1b75f8795da9fc1c7adfc655e373d97b0df67' 
  AND (
    token = '/0uXv2XbKW0kOX3qHxORDA88//SyfnKg2PMggkQIhjk=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00035