Remove gainless updates from the end of records