Changed number of cores for cosine similarity calculation to 8