improve performance with a better spring command