(#2128) - WIP - try to avoid OOM using prototypes