Add support for persistant prime calculations