Raycasts are really, really cheap. Doing even thousands of raycasts a second won’t have any noticeable impact on performance so you don’t need to worry about any performance issues.
On that note, a new API might come out sometime which would make the raycasts unnecessary: