remove static variable in file, improve file. [skip ci]

Signed-off-by: Jack <jack.wgm@gmail.com>