Optimize import libraries