Add cache stats logging after each cache build.