Enumerating keys only once in beginning.