Controlling the memory consumption