Optimize c518cde (compute filter after receive) and use a constant for filter size.