[WFLY-3110] fetch files only if they are actually required