UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '929YRrmgzfsbZ1x0o1fXGfJxS/EmZOmB8+BW6oNgfIk=' 
WHERE 
  key_id = '94d7075802ad5649bff04d2ab948a0c2abc9b74bbed9ec72ddc1cc06324ffcc1' 
  AND (
    token = '929YRrmgzfsbZ1x0o1fXGfJxS/EmZOmB8+BW6oNgfIk=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00034