Add isValidCompressedBuffer for raw memory addresses