updated in-mem factory to use per call behavior