I would be scared of the memcache usage if someone was to be using this function thinking it would be a single database operation to update thousands of rows and this this method would load every single one of them, cache them then invalidate them.