Record encryption and opt-in indexing