Check cached id without converting to string.