Smart filter implementation