Optimal procurement strategies for a storable commodity