optimize access to loop, key and value variables
feature #1443 optimize access to loop, key and value variables (linniksa)

This PR was merged into the 1.16-dev branch.

Discussion
----------

optimize access to loop, key and value variables

small optimization variable access (loop, key and value) inside for loop

Commits
-------

33ca8d1 optimize access to loop, key and value variables