Spring configuration optimization.