Flash Memory Scaling: From Material Selection to Performance Improvement