Fix regression in the performance of accessing the execution context