The caching headers part is where i usually lose time in production. you can set Cache-Control right in the callback, but half the time the host's layer just ignores it. on my cloudways setups, varnish bypasses /wp-json/ by default, and i've seen similar quirks on kinsta where php still ends up taking the hit unless you override it at the cloudflare level.
Also had a few cases where the server config just silently strips the Authorization header before wp even sees the application password, which is a pain to track down if you aren't expecting it.
when you're setting up high-traffic read endpoints for clients, do you usually just handle the edge caching through cloudflare rules, or do you actually mess with the server's varnish or nginx configs directly?