added some utils to take benefit of caching in real-time apps