- Move console_exempt_prefixes to module-level _CONSOLE_EXEMPT_PREFIXES
to avoid per-request tuple construction in before_request handler
- Refactor get_cached_license_status into focused helper methods
(_read_cached_license_status, _fetch_and_cache_license_status) to
reduce try/except nesting
- Add exc_info=True to debug-level exception logs for diagnosability
- Add LicenseStatus return type annotation with TYPE_CHECKING guard