Optimizing the performance of third-party dependencies