UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'VtI0K9iTIx0IEHHbL74pZ+u3NRF/f2Af1XWTFasnH4s=' 
WHERE 
  key_id = '85105093537db305d8cdf9cbd22f2ef4e6d7fd46b35470832ea3b61f0aa2a3e2' 
  AND (
    token = 'VtI0K9iTIx0IEHHbL74pZ+u3NRF/f2Af1XWTFasnH4s=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00023