Would it be an idea to have this be memory_max/2 (or something else depending on memory_max?) instead of this hardcoded value?