Optimize initGlobals to do only one merge call
merged branch Seldaek/optim (PR #1074)

This PR was merged into the master branch.

Discussion
----------

Optimize initGlobals to do only one merge call

Commits
-------

086088e Optimize initGlobals to do only one merge call