Add a way to configure the max number of SP urls
Avoid triming the list when not needed