serialize values before writing
on drop, write to disk immediately