Fix partial cache implementation