Move these functions out of line. A DenseMap lookup is not a simple operation.