It is possible to "optimize" this solution with string caching.
CACHE="$(head -c 1000 /dev/zero |tr '\0' '+')"
echo "${CACHE:0:10}"
echo "${CACHE:0:100}"
echo "${CACHE:0:300}"
There are only bash built-ins in the echo statement. So, we can use it in cycle.