Check for the local cache before deleting it