Optional ordinal refactor

- Removed reference numbers if not needed
- Optimized buffers to create strings as soon as possible