Avoid multiple map accesses when extracting information from the context map