added cache and load to AuthConfig