optimized OKAPI integration