Simplified OIIO texture cache related code