* optimize memory usage.