High-speed nonvolatile data-logging for Industry 4.0