It might be that the best option is perpetual war against an ineffectual enemy. If you have an enemy that you can absolutely keep in check, and periodically have to fight without much loss to yourself, then you can achieve solidarity and a militaristic spirit without causing too much harm to your own people.
I'm thinking the Israelis vs the Palestinians, for example. If Israel can keep Palestinians as a perpetual enemy, given the much smaller power of the Palestinians, a limited perpetual war will keep the Israeli people ever-united without bringing them much harm. All the benefits of war without downside.