[TASK] Speed up ReST file reference check