Optimize. Use vars. Use map