Memoize permissions in preloader
What does this MR do and why?
This change was created as a follow-up from a discussion in !158848 (comment 1992492785). It memoizes the result from a method to remove the need for a local variable assignment.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.