Cache result of isCaseSensitive() method to improve performance