If you receive the following warning message when running your Mule application:
WARN com.datastax.driver.core.Cluster [Test-Cluster-worker-23] Re-preparing already prepared query is generally an anti-pattern and will likely affect performance. Consider preparing the statement only once.
---
To avoid the previous message, increase the value of the Prepared Statement Cache Size parameter, which enables you to set the cache size for prepared statements. Set a value with at least the number of different statements that you handle in your Mule application.