Improved performance for content type filter.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>