Could you cast the feature pointer once in the beginning to avoid all those lengthy calls?