Polishing of fifo implementation