Support loading resources from classpath and absolute paths + cache resolved paths