Add option to clean old perf_times table entries #341