Avoid creating a new process object and cache dictionary when not necessary.