optimize millisecond latency