Optimize background gradient