Then toss everyone in jail and be done with it.
Here's a better alternative: find legal solutions that comply fully with the Constitution. Allow exercise of the 2nd Amendment, and you'll find the terrorist threat change dramatically - WITHOUT infringing on the 4th Amendment.