Remove unnecessary dictionary access