Perf optimizations for frontend processing