perf: merging context+locals at render time