This PR addresses using a global variable to store the cache directory path referenced by various packages. The global state is known to be prone to unintended modifications and makes changes difficult to track. Instead, the cache directory path is now passed as a parameter to propagate the value throughout the codebase.
Description
This PR addresses using a global variable to store the cache directory path referenced by various packages. The global state is known to be prone to unintended modifications and makes changes difficult to track. Instead, the cache directory path is now passed as a parameter to propagate the value throughout the codebase.
Checklist