limit the number of in-memory expansion steps