Speed up evaluate_expression slightly