Changes done until today to get random access to permute and be flushed before stridefunc is called