Replacing instances with prototypes for smaller allocation