Better performance in ContentProvider

Use SparseArray instead of HashMap