speeding up get statements