Please link, because I'm very doubtful about your Mormon studies.
Sure here is one I came across when I was writing the
Health and Religion thread. I have seen others as well.
https://rsc.byu.edu/archived/latter-day-saint-social-life-social-research-lds-church-and-its-members/9-secularizationIts a long read so for those who do not want to go through it here is the summary
For our Mormon sample, then, we find virtually no evidence to support the hypothesis that education has a secularizing influence. For Mormon men, the higher the level of education, the higher ones level of religious observance. A critical point in our findings is that this holds for several measures of religiosity
I have also seen studies that show that American Orthodox Jews (often considered most religious of the Jews) also have higher levels of education and income than their peers which leads me to believe the they are similar to Mormons in this regard.
Your interpretation is wrong. Sustained wealth is based on good economics and education which leads to new scientific achievements - a positive feedback.
...
When did we stop with capitalism? I think I didn't got the memo

Yep sorry you missed the memo. In Europe Government spending now accounts for over 50% of GDP in many countries. The USA is not far behind. Socialism and government cronyism now dominate our economies. The remnants of capitalism which still exist are shrinking and in decline. The two links below will get you up to speed.
Understand Everything FundamentallyThe Rise of KnowledgeSustained wealth does require good economics and education but these in turn must be built atop a solid moral foundation or they will not last. A prior and far wiser generation understood this.
"Only a virtuous people are capable of freedom. As nations become corrupt and vicious, they have more need of masters." - Benjamin Franklin
Is there no virtue among us? If there be not, we are in a wretched situation. No theoretical checks, no form of government, can render us secure. To suppose that any form of government will secure liberty or happiness without any virtue in the people, is a chimerical idea. If there be sufficient virtue and intelligence in the community, it will be exercised in the selection of these men; so that we do not depend upon their virtue, or put confidence in our rulers, but in the people who are to choose them. - James Madison
Of all the dispositions and habits which lead to political prosperity, religion and morality are indispensable supports. - George Washington