If your alternative is Python or Ruby, then cloning your values is perfectly OK for production code. It will still run very fast.