That sounds like the experience of writing Containerfiles; since steps are cached you want to pull the thing you are iterating on as far down as possible.
Conceptually the underlying general idea is to sort things based on stability if you can avoid recomputing properties of the stable part.