Optimize the container view.