Applies improvements discussed in class quiz
Incredibly dumb cache