enabled optimize memory