Encapsulated autoreleasepool for ARC compliance