Store generated values into some chunks for saving memory

Fixed #2