retiming load_ctxt logic in memwrite engine to match the logic in memread engine