Use hash.each_key instead of hash.keys.each

each_key is faster that keys.each
Merge pull request #496 from jastix/patch-1

Use hash.each_key instead of hash.keys.each