It would be cheaper to install a two way drawer on the existing security barrier that would allow flight attendants to pass food and beverage to the cockpit and allow pilots to pass their faeces out.
They could pee in bottles and we'd have pilot bombs instead of trucker bombs. But you can't use the word bombs on airplanes so they'd need to call them something else.