Cache the result of the external command
Merged bug25490 into stable