Modified the way entities are persisted to the db
Modified the decoded registry methods to use an object hash, as just because two entity objects
share an id, doesn't mean that they are the same object and, therefore, we can't garentee it hasn't
been decrypted