I can't decide on the caliber? Is the .40SW that much more powerful than the 9mm?
With today's powder technology, 9, 40, and 45 are about on par with each other. You just have to choose the right stuff.
I'd go 9mm if I were you. You get a higher round count and follow up shots are quicker.