[log] try to cache the results of filtering so we do not always recompute