Moved AttributeIndexEntry to AttributeTable and extracted write/delete functions.