What?
vault.db file) optimised in terms of size.How?
While performing the encoding, it is best to make use of ttl to enforce the age of the token so that after the TTL is expired, the automaitc tidy of the transform secret engine clears those entries from the storage.
If the ttl during the encode is not passed, the token can pick the TTL from the role as well via the max_ttl parameter on the role. The ttl is capped to the role's max_ttl value if that's set.
If the role doesn't enforce the max_ttl (set to 0), and the ttl is also not set, the token is stored for an indefinite time in the backend storage, and will occupy a lot of storage space if created in bulk. To clear those entries, either disable the whole secret engine itself or take help from the support team to clear those entries from the underlying storage.