Optimize configuration