Optimizations with typed_data