Torch: don't repeatedly write to flash device sysfs

Change-Id: I41347bc28d625d9497b02ecc94c1e9252d94e4b2