X265 optimization for  HEVC