Fast efficient handling of transaction queries