Caching getIdentifier caused the wrong ids to be retrieved