This test issues a bigger number of changeProfile calls (one per parametrized test). Optimize away the backend http call in case the requested params are the same as used last time.
Change is done in low level utility function as then every usage can (potentially) gain the speedup. Even is DataSourceSecurity is the main heavy user.
This change assumes no concurrent threads + all changeProfile calls going via this method.