Understanding Memoization of `Layers`

Could anybody help me understand how Layers are memoized? I have a change I'd like to make, where the Layers that I use gets decided later in the process, but when I do this it recreates the services on the layer.
Was this page helpful?