Use Rails.cache to easily memoize functions for a set period of time.