Multi-layer caching orchestration library