Introduce max memory config