Get rid of static fields which are not used anymore
Disable ResourceLeakDetection by default for performance reasons