Implement caching of results

Authored by ahiemstra on Jan 15 2018, 9:27 PM.