A constant for the maximum length for a string being stored on BB7 BB7 cannot handle strings with length longer than 524000 This restriction applies to real devices as well as simulators.
<static> BB7_MAX_STRING_STORAGE_LENGTH
SUPStorage.js, line 218.