A generic coprocessor example that can maintain a secondary index based on WALEdits