Add ability to cache textures by custom keys.