Krispy Kreme is pushing its machinery to boost efficiency and reverse a period of missed sales targets and profit losses.