cacheing pi