clean up history to limit Redis mem use #36