small code cleanups

Removed some unused plasma_t members as well as inlined the palette indexing code.