This could be done with `ets:foldl` instead of `ets:tab2list` + `lists:foldl`.