O_DIRECT for write_to_ram