optimize latency lookup