Will teaching math in school stop any of that from happening?
It seems I have more faith in the Jewish people than the Jewish people do.
Lol.. You won't understand it but I'll post it anyway, maybe others can explain it better. We're extra extra cautious about the sincerity and piety in which we and our future generations follow Yiddishkeit. So right, we don't just have faith that things will continue, it's a life long battle to stay on guard.
There is a famous story with the Chazon Ish. One asked him if he may join the army (or go to collage, I don't recall exactly) so the Ch"I asked him if there will be any situations where he wouldn't be able to follow every mitzva/hallacha etc. To with he answered no, but he might become "קאלט" in yiddiskeit, to which the Chazon Ish famously said "קאלטקייט אין אידישקייט איז ביהרג ואל יעבור".