improved menu generation speed