improvement: option to lowering memory usage