pipeline_output has to be called in before_trading_start, but I only need that information on the days where I rebalance. If I have an algo that doesn't rebalance every day, running before_trading_start takes a lot of time. I can do a funny hack of counting days and skipping computation every x days but was wondering if there's a proper way of doing this.