Remove regex-matching cache as it is bloated and is not really required.