faster history record search