Optimize cache usage in builds

An overview on how to optimize cache utilization in Docker builds.