Boxed is one company that's playing the long game when it comes to boosting efficiency with automation.