Cached some results to improve the performance of the parsing.