Move global initialization within load