How to Stack Containers Efficiently