I found my version much more readable (and shorter) and I haven't heard of RAM with limited write cycles so far.