Memoize :class and :attachment interpolations

Interpolations are quite slow, and these in particular are expensive,
generating multiple new string objects per call, and most importantly
using the #pluralize inflection.

As they will never change (being based purely on the attachment's
instance class and name, respectively), they are candidates for
memoization.