Refactored outgoing requests into command pattern
Intra-query result caching
Code cleanup and remove unnecessary wrapper