Cache identity during dict load, closes #3.