Formula: cache methods' output to reduce io
Formula: cache methods' output to reduce io

Closes Homebrew/homebrew#40855.

Signed-off-by: Xu Cheng <9a05244150b861e40c78843b801eed71bca54eac@me.com>

maxim-belkin/brew,ilovezfs/brew,staticfloat/brew,konqui/brew,nandub/brew,aw1621107/brew,staticfloat/brew,MikeMcQuaid/brew,JCount/brew,amar-laksh/brew_sudo,tonyg/homebrew,toonetown/homebrew,hanxue/linuxbrew,rwhogg/brew,AnastasiaSulyagina/brew,tonyg/homebrew,reelsense/brew,reitermarkus/brew,mistydemeo/homebrew,vitorgalvao/brew,mgrimes/brew,gregory-nisbet/brew,zmwangx/brew,tonyg/homebrew,claui/brew,DomT4/brew,Homebrew/brew,pseudocody/brew,claui/brew,reitermarkus/brew,jmsundar/brew,bfontaine/brew,DomT4/brew,Homebrew/brew,gordonmcshane/homebrew,muellermartin/dist,rwhogg/brew,claui/brew,reitermarkus/brew,vitorgalvao/brew,sjackman/homebrew,pseudocody/brew,amar-laksh/brew_sudo,mistydemeo/homebrew,Homebrew/brew,bfontaine/brew,gordonmcshane/homebrew,Linuxbrew/brew,sjackman/homebrew,reelsense/brew,Linuxbrew/brew,MikeMcQuaid/brew,staticfloat/brew,MikeMcQuaid/brew,mahori/brew,aw1621107/brew,gregory-nisbet/brew,gregory-nisbet/brew,EricFromCanada/brew,zmwangx/brew,mahori/brew,palxex/brew,alyssais/brew,bfontaine/brew,pseudocody/brew,maxim-belkin/brew,muellermartin/dist,AnastasiaSulyagina/brew,mahori/brew,zmwangx/brew,konqui/brew,toonetown/homebrew,toonetown/homebrew,JCount/brew,jmsundar/brew,mahori/brew,alyssais/brew,alyssais/brew,EricFromCanada/brew,claui/brew,nandub/brew,gordonmcshane/homebrew,mgrimes/brew,amar-laksh/brew_sudo,aw1621107/brew,reelsense/brew,Linuxbrew/brew,palxex/brew,EricFromCanada/brew,nandub/brew,DomT4/brew,mgrimes/brew,maxim-belkin/brew,sjackman/homebrew,nandub/brew,JCount/brew,Homebrew/brew,konqui/brew,JCount/brew,mistydemeo/homebrew,muellermartin/dist,AnastasiaSulyagina/brew,sjackman/homebrew,palxex/brew,MikeMcQuaid/brew,DomT4/brew,jmsundar/brew,ilovezfs/brew,vitorgalvao/brew,konqui/brew,vitorgalvao/brew,EricFromCanada/brew,hanxue/linuxbrew,ilovezfs/brew,rwhogg/brew,Linuxbrew/brew,hanxue/linuxbrew,reitermarkus/brew