Performance optimizations for first directive demo