Now that the caps from the bufferpool are not returned as const we can take a ref instead of doing a copy.