Lightweight cache library