Optimized the flash fallback generation