UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '1RFEZkVdC9F8r7yTd7t0pYSj3ohHt+b3T+PvMQjTiVc=' 
WHERE 
  key_id = '75bfffcb78cc922c9d5e7156d12ed9bed53d179c55f8dc276fcbb13272117aec' 
  AND (
    token = '1RFEZkVdC9F8r7yTd7t0pYSj3ohHt+b3T+PvMQjTiVc=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00060