Improve menu listing performance

By delaying module importing where possible