Building for scale from day 0 is a recipe for disaster. You should've seen that coming.
“The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming.”
You can't patch the kind of performance you need for these products after the fact, it needs to be baked into the architecture.