online, reduce mem cost