Clear key tables during device attaching