Fix pickle path

The user class that is now being used to determine the pickle path for storing cache file requires a REST API client to be provided.