Resource assert and cache