Front-end optimizations