Read/write pages only when absolutely necessary.
Most commercial DBMSs do this invisibly and effectively.
The dbm system:
dbm
Current implementation of QBIC opens/closes file for each record look-up.