Deploy and manage semantic models by using the XMLA endpoint. Describe the process of enabling the XMLA endpoint, managing read/write operations, and handling data refresh schedules. How would you ensure data consistency and performance optimization?