menu optimizations -- constants and caching