Enable caching for the native image building task and improves the caching effectiveness of some of the test tasks in the project.