Hash#each_key instead of Hash#keys.each. Faster code.
Merge pull request #3017 from glaucocustodio/master