Optimized the partner library