Support strict_variables by removing dynamic lookups