Getting the most out of flash storage