ditching the cosine cache