the result to be finite afterwards which is a bit faster and works for OSL too without needing to slow down OSL itself.