Add constructor prototype memoizing