Any way to verify the result of a view function came from a smart contract?

Hey all! I have a specific use case in mind, but it's really a general question. I have a gas intensive calculation that would be used as an input to another function. I'd like to split things up so the gas intensive calculation happens as a view function called by the user, and then the result is handed to the second function. I'm curious it there any way for the second function verify that the calculation being handed in in fact is a result of calling the first function? I know that Smart Contracts can't sign anything on-chain, so I'm not totally sure how to do it. But maybe there's a way I'm not thinking of??

Any help would be appreciated! Thanks! - Blake