dpam: a demand-based page-level address mappings algorithm in flash memory for smart industrial edge devices