Fixed cache calculation