Cloud-TM: An elastic, self-tuning transactional store for the cloud