Add support for statistics storage and retrieval