Cache the note type to improve performance.