Exploring Design Dimensions in Flash-based Mass-memory Devices