@jalefkowit A few jobs ago the way they managed scaling was precomputing all possible answers, sticking them in a key-value (not SQL but Berkeley DB) in memory and using some basic C code to manage the security and accounting.