Better mem write