Added retry logic to keying dao