Latency optimization