simple implementation with near-cache