Hash#each_key instead of Hash#keys.each. Faster code.
Merge pull request #3017 from glaucocustodio/master
Update history to reflect merge of #3017 [ci skip]