small optimizations to autoclean_mvlog()