optimized prefill_osiam