The indexes for accessing temporaries are constant within the context of a trace

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Use optimized get_globals_association in set_global

Signed-off-by: Stefan Marr <git@stefan-marr.de>