Workaround write to constant data error, cost of some efficiency