Update unanswered_cosine_new.py

Change to Cache Mechanism