Cache api results for testing