Cached some data to improve performance.