The code is hidden, but I'm sure the actual strength of your economy is a variable.
I wonder if a strong economy could even be a negative, in the sense that the AI feels more inclined to hit you up for money if you have a lot lying around. This has been an issue in Civ IV. I've rushed buildings to keep it low, so as not to attract the attention of my leader's acquisitive neighbors.