Make resource cache class agnostic