The basic idea of terrorism is inculcated by wrong teachings.Human beings naturally are not interested in harming other human beings.As you have explained there are very few who get brainwashed to take such an extreme step.
A simpler process would be to educate and spread the fact that human beings as a species are one. The thoughts are the problems.The thoughts alone can be the solution. Questioning the Jihadi thoughts is an act which every terrorist also does. We just need to ignite that feeling of Justice that every human being has in him given by nature. More explained in the below article.
Barcelona Attack: Can Yoga Stamp out Terrorism from this World?
Can Yoga eliminate Terrorism?
Would love to hear your views on ways to remove terrorism from the mind rather than force to deter the same.