ENH: Improve performance when checking if all the images in a volume are in the same anatomical plane: now the result is computed the first time and cached for subsequent requests.