This speeds up computations of extended command shortcuts by a factor of around 4 in the complicated cases, while the slowdown for the easy cases is hardly noticeable. Maybe Eduardo can give that a try? Further improvements are probably not that low-hanging fruits. The calculation is also always interruptible so I don't think more work is worth the trouble. Michael.