Eliminate some reflective calls