Remove non-required caches in the Groovy Scripts