How to achieve optimal efficiency through outsourcing