Functions that Take a Long Time to Compute
Cache the results in a database
Run an overnight batch job to populate the database
In the morning, the function is fast