A stratified strategy for efficient kernel-based learning