Memoize stubbed parameters class creation