Added support to cached files for hadoop