To reiterate: the door is there ONLY to stop people coming in. To do that properly there must be no “secret” way round it. This was proven effective in the GermanWings accident.
If a pilot wishes to crash the aircraft, there is nothing anyone can do about it and that includes the guy sitting next to them (or behind them). The answer is to not have mentally ill people coming to work.