added hierarchical cache primitive.