I think this sutta gives an important clue - it appears early in the Chapter of the Twos, in the Anguttara Nikaya:
Tranquillity and Insight
Two things, O monks, partake of supreme knowledge. What two? Tranquillity and insight.
If tranquillity is developed, what benefit does it bring? The mind becomes developed. And
what is the benefit of a developed mind? All lust is abandoned.
If insight is developed, what benefit does it bring? Wisdom becomes developed. And what is
the benefit of developed wisdom? All ignorance is abandoned.
A mind defiled by lust is not freed; and wisdom defiled by ignorance cannot develop. Thus,
monks, through the fading away of lust there is liberation of mind; and through the fading away
of ignorance there is liberation by wisdom.
"My religion is very simple - my religion is ice-cream."