Radically increasing efficiency by caching function outputs.