It’s a wonder someone has not determined when the cost is low to charge battery banks that can be used during the day.
Or are we talking about such huge amounts it would not be practical.
This is an Australian article, but will give you a good idea of the factors involved.
This is what Tesla's home battery, Powerwall, will cost to run in Australia