A lightweight caching interface