Read dataset directly and avoid the two function calls (plus internal calls) in each iteration of the filter callback.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>