Nuke the comments. Also, your comment is crossing concerns because it is talking about "key (a downcased string)". Just for reference it is generally better to keep the terms and knowledge in comments as well as code scoped to the region of code it is about. That way when you change things the comments you have to update are in the same file.