cache answers during the runtime of the program