Rework sin/cos table access.