optimize searching in set of implemented functions in fastcomp toolchain code