Cache class and method lookup in static block to reduce reflection