improved speed in block filtering

Signed-off-by: andrewphorn <andrewphorn@gmail.com>