Cache discovery results up to five minutes (fixes #358)