Improve the performances of the UnusedLocalVariable check