flash: dynamically allocate working storage