Best practices for writing data