Issue #3445909 by seanB, smustgrave, alexpott, catch: Add static caching to LayoutTempstoreRepository
(cherry picked from commit 27c9bcca)
Closes #3461421