According to Bhagavad Gita (8.16), nothing in this material creation is actually good. We have a choice to accept what Krishna says or we can accept our own idea of good. But from Krishna’s perspective, this place is a place of misery and it is temporary. Even if we accept this place as good it is still temporary. Regardless, both misery and good is temporary according to Bhagavad Gita.
Having said that, if we re-define good as spiritual good and not material good, then everything is indeed happening for the good. By spiritual good, I mean good for the atma or soul and not deha or body. The body will deteriorate and die no matter what but the atma is eternal and hence real goodness can only mean spiritual good or good for the soul.
In our vision of one life time, it is difficult to evaluate how “all” souls are benefiting. But from Krishna’s position of past, present and future, “all” infinite souls in this material creation will eventually go back to Krishna. Krishna repeatedly sends His messengers or comes Himself to redeem these lost souls. So in that long standing sense of past, present and future, everything is slowly but surely churning towards Krishna and because Krishna is all good, everything indeed is good.
As they say “the mills of God grind slowly but surely”. We simply have to practice patience and tolerance in the face of dualities of life and meditate on our soul and Supersoul Krishna and as we make our journey towards Krishna, everything is good.
It is this journey towards Krishna which is all good, everything else is washed away by the waves of time anyways!