What about some type of quick acting gas that can be set off in the cockpit which disables all in the cabin.
Reinforce the cockpit door so that it takes time to enter, at the first sign of trouble the pilots don oxygen masks and hit the switch.
I know it would be traumatic for PAX, yet i think they would rather wake up from that then the possible alternatives.