Some memoization of head shortcuts.

Working towards #275.
Memoize note head shortcuts.

Closes #275.