Shorten memoization in accessibility helper