Initialize the array of pointers to NULL, and free the memory upon closing the cache