### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

Sometimes `GetRecords` on a dynamodb stream will return a different base64 encoded value

### Expected Behavior

The `GetRecords` call should return the same base64 encoded value as `GetItem`

### How are you starting LocalStack?

With a `docker run` command

### Steps To Reproduce

#### Start LocalStack
```bash
# docker run --rm -it -p 4566:4566 -p 4510-4559:4510-4559 localstack/localstack
...
LocalStack version: 1.0.5.dev
LocalStack build date: 2022-08-29
LocalStack build git hash: bc8cb7ed
```

#### Run the following script
The original problem was in a Clojure program, I ported the exact failing case to python to help your debugging.
```python
from time import sleep
from uuid import uuid4
import boto3

endpoint_url = "http://localhost.localstack.cloud:4566"


def wait_for_table_active(dynamo_client, table_name):
    while True:
        response = dynamo_client.describe_table(TableName=table_name)
        table_status = response.get('Table', {}).get('TableStatus')
        if (table_status == 'ACTIVE'):
            return response
        sleep(1)


def poll_records(streams_client, shard_iterator):
    while True:
        response = streams_client.get_records(ShardIterator=shard_iterator)
        records = response.get('Records')
        if records:
            return records
        shard_iterator = response.get('NextShardIterator')


def main():
    boto3.set_stream_logger(name='botocore')
    table_name = 'StreamBug-' + str(uuid4())

    # nippy compressed bytes - this fails
    test_data = b'NPY\x08\x00\x00\x00\r\xd0i\x0bhello/world'
    # This works
    # test_data = 'hello/world'.encode()

    # aws clients - switch these to run on aws
    # dynamo_client = boto3.client('dynamodb')
    # streams_client = boto3.client('dynamodbstreams')
    dynamo_client = boto3.client('dynamodb', endpoint_url=endpoint_url)
    streams_client = boto3.client('dynamodbstreams', endpoint_url=endpoint_url)

    # create DynamoDB table
    dynamo_client.create_table(
        TableName=table_name,
        KeySchema=[{
            'AttributeName': '__pkey',
            'KeyType': 'HASH'
        }],
        AttributeDefinitions=[{
            'AttributeName': '__pkey',
            'AttributeType': 'S'
        }],
        BillingMode='PAY_PER_REQUEST',
        StreamSpecification={
            'StreamEnabled': True,
            'StreamViewType': 'NEW_IMAGE',
        }
    )

    table = wait_for_table_active(
        dynamo_client=dynamo_client,
        table_name=table_name
    )

    # There is an issue where the table is marked as ACTIVE, however issueing a
    # put-item immediately does not go into the stream.
    sleep(10)


    # put a dummy item to be used with the test
    dynamo_client.put_item(
        TableName=table_name,
        Item={
            '__pkey': {'S': 'test'},
            'data': {'B': test_data},
        }
    )

    dynamo_client.get_item(
        TableName=table_name,
        Key={'__pkey': {'S': 'test'}}
    )

    stream_arn = table['Table']['LatestStreamArn']

    shard_id = streams_client.describe_stream(StreamArn=stream_arn)[
        'StreamDescription']['Shards'][0]['ShardId']
    shard_iterator = streams_client.get_shard_iterator(
        StreamArn=stream_arn,
        ShardId=shard_id,
        ShardIteratorType='TRIM_HORIZON'
    )['ShardIterator']

    poll_records(streams_client=streams_client, shard_iterator=shard_iterator)

    # cleanup
    dynamo_client.delete_table(TableName=table_name)


if __name__ == "__main__":
    main()
```
look for the `GetItem` response body
```
2022-08-30 11:48:55,361 botocore.parsers [DEBUG] Response body:
b'{"Item": {"__pkey": {"S": "test"}, "data": {"B": "TlBZCAAAAA3QaQtoZWxsby93b3JsZA=="}}}'
```

look for the `GetRecords` response body
```
2022-08-30 11:48:55,436 botocore.parsers [DEBUG] Response body:
b'{"Records": [{"eventID": "c1ffbeeb", "eventVersion": "1.1", "dynamodb": {"ApproximateCreationDateTime": 1661874535.0, "SizeBytes": 86, "Keys": {"__pkey": {"S": "test"}}, "NewImage": {"__pkey": {"S": "test"}, "data": {"B": "TlBZCAAAAA3vv71pC2hlbGxvL3dvcmxk"}}, "StreamViewType": "NEW_IMAGE", "SequenceNumber": "49632833953051709227967803742008155050319272171947425794"}, "awsRegion": "eu-west-1", "eventSource": "aws:dynamodb", "eventName": "INSERT"}], "NextShardIterator": "AAAAAAAAAAHC3kaHiqEu2QMfgVQVl4V2uwXtFTVE3oNGtEO3bZ8a68TbYVSd9anOKoZ/TyTdLZcH0j49Ji8vOcGFxVOTxmf4hQlki2T7VTkDfLS7tVgQsr0Bvsz9AtZkxBgUCOEaFkwls4P4ApfhZz4QCIxlYEMPrCxhYwbDTmPsVAJHeKh9o7yDg1qCD5zbML838dYFx4zSI2T7RU5M2y+RPKwgMDrc4EL6A9WhaXC+uhLv2lac+W7+lfBIGyQePpmEYRAqZFo="}'
```

`GetItem` returns `{"B": "TlBZCAAAAA3QaQtoZWxsby93b3JsZA=="}`
`GetRecords` returns `{"B": "TlBZCAAAAA3vv71pC2hlbGxvL3dvcmxk"}}`



### Environment

```markdown
- OS: MacOS 12.5.1
- LocalStack: latest
```


### Anything else?

This may be related to https://github.com/localstack/localstack/issues/6700

Version `0.14.2` returns the value base64 encoded twice.
Version `0.14.0` works.

I have tested the script on AWS and it works as expected
"IndexName": "field_b_index",
                    "KeySchema": [{"AttributeName": "field_b", "KeyType": "HASH"}],
                    "Projection": {"ProjectionType": "ALL"},
                    "ProvisionedThroughput": {
                        "ReadCapacityUnits": 1,
                        "WriteCapacityUnits": 1,
                    },
                },
            ],
        )
        table.query(
            TableName=table_name,
            IndexName="field_b_index",
            KeyConditionExpression=Key("field_b").eq("xyz"),
            Select="ALL_ATTRIBUTES",
        )
        # cl
        delete_table(table_name)
    @pytest.mark.aws_validated
    def test_valid_local_secondary_index(
        self, dynamodb_client, dynamodb_create_table_with_parameters, snapshot
    ):
        table_name = f"test-table-{short_uid()}"
        dynamodb_create_table_with_parameters(
            TableName=table_name,
            KeySchema=[
                {"AttributeName": "PK", "KeyType": "HASH"},
                {"AttributeName": "SK", "KeyType": "RANGE"},
            ],
            AttributeDefinitions=[