All queries I analyzed are now as optimized as they can be. The remaining query runtime is mostly planning time, the execution time is usually 3ms or less.
If there are more gains to be had I don't (yet) know how to achieve them. We're now significantly faster at being mastodon than mastodon itself is, with no caching layers.