ObjectStorage refactor to take io.Reader instead of []byte