As we've seen, a plane can be devastating when used as a weapon, so I think it is sensible to deny terrorists to the cockpit at the expense of the passengers. Theoretically, there are few situations where passengers can be forcibly restrained, since they should outnumber any people trying to seize the plane by quite a bit, passengers could (and have[2]) attempted to neutralize the threat themselves (as they understand the possible consequences of waiting out the situation in this era where the goal is not money, but chaos).
Even if we did away with security entirely and let people carry guns on board, there would be literally zero risk of a hijacked plane in the US thanks to the locked doors. (There might be other reasons not to do that, but hijacking fears are not one of them).
And even then, it's arguable that this would still be impossible. 9/11 happened because hijacking protocol never took into account the possibility that the hijackers would use the plane itself as a weapon. The people on the final hijacked plane on 9/11 did know this, because they received calls about the WTC, so they fought back and forced the plane to crash, thwarting the hijackers' plans.