Better algorithm for determining SSO profile in effect for a given request. Default...