KH-189: Use configurable value for max idle time

Instead of fetching it dynamically during config which caused side
effects like messing the REST response after user logout & login.