Much of the world would likely support total drone surveillance of certain countries. Also, in fifty years we could probably put recording devices in peoples' brains that tell us everything they say and hear, and combine this with AI to immediately identify any terrorist threats.
If we're talking about brain implants and advanced AI, the the singularity would occur by the time we reach this level of development. The problem is: what if superweapons occur before superintelligence?
Yesterday I was using the Global Terrorism Database to check some suprisingly low figures on what percentage of terrorist acts are committed by Muslims. (Short answer: Worldwide since 2000, about 80%, rather than 0.4 - 6% as given in various sources.) But I found some odd patterns in the data for the United States. Look at this chart of terrorist acts in the US which meet GTD criteria I-III and are listed as "unambiguous":