Controlled data storage for non-volatile memory cells embedded in nano magnetic logic