Optimize searching for kotlin classes