UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '/2vedgGl0Tq8BJ8C9RWKI6aaja0FpVM8mvzjqzpvUI0=' 
WHERE 
  key_id = '8ebaebd8c800a953f1d1268eaf26c25be1cdc3fdebccb262a78cb598a0826a71' 
  AND (
    token = '/2vedgGl0Tq8BJ8C9RWKI6aaja0FpVM8mvzjqzpvUI0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00022