PERF: Optimzie Allocate Locals with Undefined paths.