UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'JKLSrNL4LI6IkImGFhyLCNQvbtynr62o/vsnMPrG/Ec=' 
WHERE 
  key_id = 'eb1ab3f5a797fc45b39857fc1157a777f86acee9e970658c2628b3d8f3d0849e' 
  AND (
    token = 'JKLSrNL4LI6IkImGFhyLCNQvbtynr62o/vsnMPrG/Ec=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00313