Metadata.escapeId and Metadata.handleId both use regular expressions.
This shouldn't be a problem when these methods are called to format a CQL string, by it could be a problem in the process of serializing/deserializing binary data. This happens in the following places:
We could improve their performance by replacing the regular expressions with hardcoded matching algorithms.