Fetch class only once for loca variable in method