Used a []uint as buffer to reduce memallocs.

Because this is a performance critical part of an application I am writing, I figured I would pull request my optimizations. 

I used a []uint buffer that is stored in the filter that way one doesn't have to be created for every request.