Write/read option updates

Updated write and read method to optimize performance