add bundle state caching for raw content (#282)