Jesus on the heels of the beatitudes emphasizes a righteous perspective on persecution. Then he speaks about salt and light, which I have come to believe is a continuation of his teaching on handling the temptations association with persecution.
Salt has a strong chemical bond and is broken down only by dilution with water.
This video is a perfect illustration.