Add const modifier to read-only tables

I hope this can let the compiler optimize code slightly.