Fix possible NPE and make fast reflection not instance-based