Maximizing Efficiency with Insourcing