Optimize frontend performance & fix bottlenecks