Well, you have to translate names to ids somehow if you're using ids (which is what this PR introduces). Using a cache is certainly a working implementation of doing so.