In the days when it had a low capacity and a short shelf-life, flash memory was a niche product - but now it is growing much faster than expected.