Optimizations:
- batched real/boolean reading and writing
- improved the real input interpolation functionality