Dumb bulk crawlers usually don't bother running Javascript, so you might be able to mitigate it by moving your expensive logic to an API endpoint that clientside JS calls in order to populate the page. Assuming you don't need search engines to be able to see those pages.