Added cache freeing for released clients