The previous version is actually more efficient.