Replace O_DIRECT with better, more modern solution