Memoize declared fields to avoid reflection during case class decomposition