Remove unnecessary casting
Change unnecessary static variables to local variables