Keep memory usage bounded.