Clean up ResourceCache template functions.