Issue#3370223: Improve performance for large menus
Issue #3370223: Improve performance for large menus
This MR improves upon the existing suggestions in MR 37 and the related review comments from das-peter.
Key changes are:
- Removal of static caching to avoid problem when a menu is rendered multiple times with different configurations on the same page
- Dependency injection for language management
- Simplification of cache handling