The issue was resolved in a different way.
The root cause for this inconsistency was that there was a "duplicated" - in quotes - key. We somehow ended up with a separate entry with a trailing space at the end:
db.get('my_key') db.get('my_key ')