shouldQuoteIdentifier

Returns whether an identity should be wrapped in quotations and caches the returned value.