Arguably, both their presence and methodologies, act to discourage the likelihood of terrorism, to whatever extent. Much as a pat down on entering a nightclub, may discourage knives and firearms.