How to control the costs of cloud storage