A resource cache implementation