A pyramid sits inside a square prism such that its base lies on one of the bases of the prism. If the edge of the base of the square is 40 inches and the base area of the pyramid is one-fourth of the base area of the prism, then the maximum possible volume of the pyramid is ________.