Added caching to speed up builds.