Added function to use custom values to have correct performance in cassandra and remove unused function