Enable memory optimization