Which part of it looks expensive? The Java API, that gives back an array, or the filter?