Ensure that ruby block adding keys is idempotent