Created L2 cache check function