Optimizations to the stringfields API