Add all parsed files to lexer cache (closes #3387, reopens #3188)