opensearch bug fix and caching