The only real solution or mitigator is to build the cockpit so neither pilot has to go beyond the cockpit door. That means making the fwd toilet part of the secure flight deck environment. Unfortunately for the pilots and pax that will cost money so it won't be done.