razor optimizations